<?php
foreach ($YTuong as $YT) {
    ?>
    <div class="small_article">
        <div class="image_article"><a href="<?php echo Yii::app()->createUrl('User/ArticleDetails', array('Id' => $YT->Id)); ?>"><img src="<?php echo Yii::app()->baseUrl; ?>/images/ArticleCover/<?php echo $YT->AnhBia; ?>"></a></div>
        <div class="article_details">
            <div class="article_imfomation">
                <div class="basic_imfarmation">
                    <div class="article_field center-child">
                        <!--<a class="button_base" href="#"><span>Cơ khí gia dụng</span></a>-->
                    </div>
                    <div class="article_time center-child">
                        <span>
                            <?php echo date('d-m-Y', strtotime($YT->NgayDang)); ?>
                        </span>
                    </div>
                </div>


            </div>

            <div class="article_title">
                <a href="<?php echo Yii::app()->createUrl('User/ArticleDetails', array('Id' => $YT->Id)); ?>"><span><?php echo $YT->TieuDe; ?></span></a>
            </div>

        </div>
        <div class="article_intro">
            <div class="article_analysis">
                <div class="article_owner center-child">
                    <a href="<?php echo Yii::app()->createUrl('User/' . $YT->NguoiDang); ?>"><h4><?php echo $YT->TenNguoiDang; ?></h4></a>
                </div>
                <div class="analysis_information">
                    <div class="analysis_view center-child">
                        <img src="<?php echo Yii::app()->baseUrl; ?>/images/Icons/View-light.png" class="icon_32">
                        <span><?php echo $YT->LuotXem; ?></span>
                    </div>
                    <div class="analysis_feedback center-child">
                        <img src="<?php echo Yii::app()->baseUrl; ?>/images/Icons/Note-light.png" class="icon_32">
                        <span><?php echo $YT->LuotChiaSe; ?></span>
                    </div>
                    <div class="analysis_creative center-child">
                        <img src="<?php echo Yii::app()->baseUrl; ?>/images/Icons/Idea-light.png" class="icon_32">
                        <span><?php echo $YT->DiemSangTao; ?></span>
                    </div>
                </div>
            </div>
            <div class="article_intro_content">
                <p><?php echo $YT->GioiThieu; ?></p>
            </div>
        </div>
    </div>
<?php } ?>